<template>
  <div class="tabForm">
    <van-tabs v-model="active" color="#007AFF">
      <van-tab :title="'批准宅基地及建房情况'">
        <inputSelect :isShowCity="false" :contentData.sync="contentData" :JFData.sync="JFData2" :title="'批准宅基地及建房情况'"
          @getValues="getValues" />
        <inputSelect :isShowCity="false" :contentData.sync="zfjzmjData" :JFData.sync="JFData2" :title="'住房建筑面积'"
          @getValues="getValues" />
        <inputSelect :isShowCity="false" :contentData.sync="jzcsData" :JFData.sync="JFData2" :title="'建筑层数'"
          @getValues="getValues" />
        <inputSelect :isShowCity="false" :contentData.sync="jzgdData" :JFData.sync="JFData2" :title="'建筑高度'"
          @getValues="getValues" />
      </van-tab>
      <van-tab :title="'四至'">
        <inputSelect :isShowCity="false" :contentData.sync="sizhiData" :JFData.sync="JFData2" :title="'四至'"
          @getValues="getValues" />
      </van-tab>
      <van-tab :title="'地类'">
        <inputSelect :isShowCity="false" :contentData.sync="dileiData" :JFData.sync="JFData2" :title="'地类'"
          @getValues="getValues" />
      </van-tab>
      <van-tab :title="'农污设施'">
        <inputSelect :isShowCity="false" :contentData.sync="nwssData" :JFData.sync="JFData2" :title="'农污设施'"
          @getValues="getValues" />
      </van-tab>
      <van-tab :title="'图集信息'">
        <inputSelect :isShowCity="false" :contentData.sync="tjxxData" :JFData.sync="TJJFData" :title="'图集信息'"
          @getValues="getValues" @getButtons="getButtons" />
      </van-tab>
    </van-tabs>
    <slot></slot>
    <van-collapse v-model="activeNames1">
      <p class="subTitle"><span class="line"></span> <span style="color: #3f8ffc">测绘单位</span></p>
      <van-collapse-item title="测绘单位" name="0">
        <van-field name="picker" :value="JFData[0]['SFXZCHDW'] | inUseName(Enum.isArr)" label="是否选择测绘单位" placeholder="请选择"
          @click="Enum.show = true" clickable readonly>
          <template #button>
            <van-button size="small" type="info" @click.stop="getSelection()">选择测绘单位</van-button>
          </template>
        </van-field>
        <van-popup v-model="Enum.show" position="bottom">
          <van-picker value-key="name" show-toolbar :columns="Enum.isArr" @confirm="onConfirm"
            @cancel="Enum.show = false" />
        </van-popup>
        <van-field type="textarea" v-model="JFData[0]['CHDWMC']" v-show="isShow1" label="测绘单位名称" placeholder="请输入内容" />
      </van-collapse-item>
      <p class="subTitle"><span class="line"></span> <span style="color: #3f8ffc">附件</span></p>
      <van-collapse-item :title="'附件'" name="1">
        <upLoad :rowData="rowData" :FJData="FJData1" :isReadOnly="true" :SHITUID="'98bcf528966e48ce896a8b3fd02d45d5'"
          :UpLoadID="'7a3fc061c866434b8475d3775c9ddcea'" />
      </van-collapse-item>
    </van-collapse>
    <van-popup v-model="show2" position="bottom">
      <div
        style="height: 45px; line-height: 45px; font-size: 16px; text-align: center; border-bottom: 1px solid #ccc; color: black; font-weight: bold">
        选择测绘单位</div>
      <!-- <p class="titleBtn"><span @click="ENUM.CHBM = false" style="color: #969799">取消</span><van-checkbox v-model="checked1" @change="toggleAll">全选</van-checkbox></p> -->
      <van-radio-group ref="checkboxGroup" v-model="radio" :style="{ height: '40vh', 'overflow-y': 'auto' }">
        <van-cell-group>
          <van-cell v-for="(item, index) in cjdwData" clickable :key="index" :title="item.COMAPNY_NAME"
            @click="toggle(index)">
            <template #right-icon>
              <van-radio :name="item.TYSHXYDM" ref="checkboxes1" />
            </template>
          </van-cell>
        </van-cell-group>
      </van-radio-group>
    </van-popup>
  </div>
</template>

<script>
import { GSA_Search, GSA_Add } from '@/common/commonApi'
import inputSelect from '../../public/inputSelect'
import upLoad from '@/utils/upLoad'
export default {
  data() {
    return {
      active: 0,
      isShow1: false,
      radio: null,
      show2: false,
      checked1: false,
      activeNames1: ['0', '1'],
      zfjzmjData: [
        {
          label: '总建设面积(㎡)',
          key: 'jzmj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地上(㎡)',
          key: 'dsmj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地下(㎡)',
          key: 'dxmj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      jzcsData: [
        {
          label: '总建设层数(层)',
          key: 'jzcs', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地上(层)',
          key: 'dscs', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地下(层)',
          key: 'dxcs', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      jzgdData: [
        {
          label: '总建筑高度(m)',
          key: 'jzgd', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地上(m)',
          key: 'dsgd', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地下(m)',
          key: 'dxgd', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '檐口高度(m)',
          key: 'ykgd', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '屋顶高度(m)',
          key: 'wdgd', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '地坪标高(m)',
          key: 'dpbg', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      contentData: [
        {
          label: '性质',
          key: 'JFXZ',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: 'db35edee-88e0-4fae-b14a-868ed4beb1d9',
          NYDARR: []
        },
        {
          label: '建筑结构',
          key: 'jzjg',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: 'b65d1943-66f4-49b1-b759-cd9f079dc0d3',
          NYDARR: []
        },
        {
          label: '宅基地面积(㎡)',
          key: 'zjdmj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '房基占地面积(㎡)',
          key: 'fjzdmj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '所属规划区',
          key: 'GHQ',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: '9b7e6eba-f7a0-4684-b820-8357dd92ae32',
          NYDARR: [],
          isOtherSealf: true
        },
        {
          label: '地址',
          key: 'address', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },


        // {
        //   label: '建筑面积(㎡)',
        //   key: 'jzmj', //绑定的字段
        //   ISinput: true, //true:输入框
        //   required: false, //true: 必填项
        //   readonly: false, //true:可以填写 false：不可以填写
        //   isTime: false //true:可以时间选择器 false：下拉框
        // },
        // {
        //   label: '建筑层数(层)',
        //   key: 'jzcs', //绑定的字段
        //   ISinput: true, //true:输入框
        //   required: false, //true: 必填项
        //   readonly: false, //true:可以填写 false：不可以填写
        //   isTime: false //true:可以时间选择器 false：下拉框
        // },
        // {
        //   label: '建筑高度(m)',
        //   key: 'jzgd', //绑定的字段
        //   ISinput: true, //true:输入框
        //   required: false, //true: 必填项
        //   readonly: false, //true:可以填写 false：不可以填写
        //   isTime: false //true:可以时间选择器 false：下拉框
        // }
      ],
      JFDatatree:[{

      }],
      JFData: [
        {
          JFXZ: '',
          address: '',
          fjzdmj: '',
          zjdmj: '',
          jzjg: '',
          GHQ: '',
          jzmj: '',
          jzgd: '',
          jzcs: '',
          hasdxs: '',
          nz: '',
          dz: '',
          bz: '',
          xz: '',
          dl_nyd: '',
          dl: '',
          dl_nyd_qt: '',
          rzjj: '',
          if_xlrty: '',
          wqsc: '',
          nwss: '',
          beizhu: '',
          SFXZCHDW: '',
          CHDWMC: '',
          CHDWID: ''
        }
      ],
      JFData2: [
        {
          ROW_GUID: '',
          TO_ROW_GUID: '',
          CREATIONTIME: '',
          UPDATETIME: null,
          OPTYPE: "",
          SGDW: '',
          ZJDMJ: '',
          FJZDMJ: '',
          DZ: '',
          NZ: '',
          XZ: '',
          BZ: '',
          IF_TG: '',
          JCRY: '',
          CYRY: '',
          JCSJ: '',
          FXWT: '',
          BLYJ: '',
          XCGHXKZH: null,
          NCZJDPZSZH: null,
          KGRQ: null,
          JGRQ: null,
          ZJZMJ: null,
          JZMJDS: null,
          JZMJDX: null,
          JJZCS: null,
          JZCSDS: null,
          JZCSDX: null,
          ZJZGD: null,
          JZGDDS: null,
          JZGDDX: null,
          YKGD: null,
          WDGD: null,
          DPGD: null,
          YSRQ: null,
          FMSFFH: null,
          ZJGHSHJBR: null,
          ZJGHSHJBRJL: null,
          ZJGHSHJBRQM: null,
          ZJGHSHJBRSJ: null,
          ZJGHSHFZR: null,
          ZJGHSHFZRJL: null,
          ZJGHSHFZRQM: null,
          ZJGHSHFZRSJ: null,
          ZJZGSHJBR: null,
          ZJZGSHJBRJL: null,
          ZJZGSHJBRQM: null,
          ZJZGSHJBRSJ: null,
          ZJZGSHFZR: null,
          ZJZGSHFZRJL: null,
          ZJZGSHFZRQM: null,
          ZJZGSHFZRSJ: null,
          ZJNFSHJBR: null,
          ZJNFSHJBRJL: null,
          ZJNFSHJBRQM: null,
          ZJNFSHJBRSJ: null,
          ZJNFSHFZR: null,
          ZJNFSHFZRJL: null,
          ZJNFSHFZRQM: null,
          ZJNFSHFZRSJ: null,
          XZRMZFSHYJ: null,
          XZRMZFSHQM: null,
          XZRMZFSHSJ: null,
          SJFZR: null,
          XMFZR: null,
          ZFFMYS: null,
          NCSHWSCLSS: null,
          YDGHHS: null,
          SFZTJGYSYJ: null,
          ZDJDJD: null,
          GJJDYS: null,
          RCJC: null,
          XZBAYJ: null,
          XZBAQM: null,
          XZBASJ: null,
          ZGBMBAYJ: null,
          ZGBMBAQM: null,
          ZGBMBASJ: null,
          DXSHJKC: null,
          LMYSCS: null,
          SJDW: null,
          IF_XZQYDW: null,
          QYDWMC: null,
          QYDWID: null,
          SFXZCHDW: 6,
          CHDWMC: null,
          CHDWID: null,
          JFCZQK: null,
          SFYW: null,
          YWXX: null,
          IF_NWKNCLSS: null
        }
      ],
      TJJFData: [
        {
          TJLX: '',
          TJMC: '',
          TJBH: ''
        }
      ],
      sizhiData: [
        {
          label: '东至',
          key: 'DZ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '南至',
          key: 'NZ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '西至',
          key: 'XZ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '北至',
          key: 'BZ', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      dileiData: [
        {
          label: '地类',
          key: 'DL',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: 'd2ec96d4-b5bc-404a-a9f1-34db915c694b',
          NYDARR: []
        },
        {
          label: '农用地',
          key: 'DL_NYD', //绑定的字段
          ISinput: false, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false, //true:可以时间选择器 false：下拉框
          emitData: '52215e71-341a-452b-8823-a8d4aae058ab',
          NYDARR: []
        },
        {
          label: '其他',
          key: 'DL_NYD_QT', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          emitData: '2c478392-9c1b-40da-b941-41e4b8c9d6d3',
          NYDARR: []
        },
        {
          label: '日照间距',
          key: 'rzjj', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '涉及相邻关系的,是否已征得相邻权利人同意',
          key: 'IF_XLRTY',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: '86d6eb80-8bcb-49f6-b5c3-462ac1ae585d',
          NYDARR: []
        },
        {
          label: '外墙色彩',
          key: 'WQSC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      nwssData: [
        {
          label: '农污设施建设情况',
          key: 'NWSS',
          ISinput: false,
          required: false,
          readonly: false,
          isTime: false,
          emitData: 'd0ad1260-14c9-4b2e-ac11-9ee6ec9c95f4',
          NYDARR: []
        },
        {
          label: '设施名称',
          key: 'SSMC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '设施编号',
          key: 'SSBH', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      tjxxData: [
        {
          label: '图集类型',
          key: 'TJLX', //绑定的字段
          ISinput: false, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false, //true:可以时间选择器 false：下拉框
          buttonTest: '查看',
          emitData: '9b93f111-a6a3-4eac-a86f-f4b7e1ff4b30',
          NYDARR: []
        },
        {
          label: '图集编号',
          key: 'TJBH', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        },
        {
          label: '图集名称',
          key: 'TJMC', //绑定的字段
          ISinput: true, //true:输入框
          required: false, //true: 必填项
          readonly: false, //true:可以填写 false：不可以填写
          isTime: false //true:可以时间选择器 false：下拉框
        }
      ],
      FJData1: [
        {
          title: '测绘CAD文件',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'cae36c74-dfbb-4061-b692-ad1db0b8c3b9',
          fileList: []
        },
        {
          title: '坐标串',
          FileName: [],
          groupGuid: '3709fd83-5210-4aeb-8463-14390b2916ba',
          fileList: []
        },
        {
          title: '相关材料',
          FileName: [],
          groupGuid: 'd2b060bc-f516-489e-a42c-d86bf8b5cc5c',
          fileList: []
        }
      ],
      //一层里莫
      FJData2: [
        {
          title: '测绘CAD文件',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'b7f80a32-161c-4e86-9a4c-5a0c4bfefd0e',
          fileList: []
        },
        {
          title: '坐标串',
          FileName: [],
          groupGuid: 'b5f9baac-c80e-4d90-a571-7d3eca957ae7',
          fileList: []
        },
        {
          title: '相关材料',
          FileName: [],
          groupGuid: 'a1f10e17-fe2a-4597-9662-5b80c0d75b68',
          fileList: []
        }
      ],
      //基槽沿线
      FJData3: [
        {
          title: '验线照片',
          FileName: [],
          isReadOnly: true,
          groupGuid: '55e2121e-87ff-4710-88b2-b69cd092c175',
          fileList: []
        },
        {
          title: '测绘CAD文件',
          FileName: [],
          isReadOnly: true,
          groupGuid: '97cad288-99bd-415c-a31e-4172a80a9645',
          fileList: []
        },
        {
          title: '坐标串',
          FileName: [],
          groupGuid: '662d91f5-a348-4901-894d-50a7e3665a5e',
          fileList: []
        },
        {
          title: '相关材料',
          FileName: [],
          groupGuid: '4f5c5663-b4da-418a-b238-b798174a7115',
          fileList: []
        }
      ],
      //竣工验收
      FJData4: [
        {
          title: '竣工照片',
          isReadOnly: true,
          FileName: [],
          groupGuid: '92c70501-7008-4f20-ae78-5765c05db137',
          fileList: []
        },
        {
          title: '竣工平面简图',
          isReadOnly: true,
          FileName: [],
          groupGuid: 'fbe3b2b8-9eb7-4ef0-94da-359dd1383a0b',
          fileList: []
        },
        {
          title: '测绘CAD文件',
          isReadOnly: true,
          FileName: [],
          groupGuid: 'bf10d39f-a871-492d-b266-4338fd31a69b',
          fileList: []
        },
        {
          title: '坐标串',
          FileName: [],
          groupGuid: '7aef67be-cefc-4172-92af-d50979b49f05',
          fileList: []
        },
        {
          title: '质量验收记录表（施工方、 业主方）',
          FileName: [],
          isReadOnly: true,
          groupGuid: 'f58a4c0a-6cdc-411a-92ee-5d1775a57545',
          fileList: []
        },
        {
          title: '相关材料',
          FileName: [],
          groupGuid: '747eb1f6-ccde-45e1-ac7f-5bf3c726dad8',
          fileList: []
        }
      ],
      Enum: {
        isArr: [
          {
            value: 5,
            name: '是'
          },
          {
            value: 6,
            name: '否'
          }
        ],
        show: false
      },
      cjdwData: []
    }
  },
  inject: ['father'],
  props: ['rowData', 'name','optype'],
  filters: {
    inUseName: function (msg, data) {
      let name = ''
      data.forEach((item) => {
        if (item.value == msg) {
          name = item.name
        }
      })
      return name
    }
  },
  methods: {
    getValues(name, value, label) {
      console.log(name, value, label, this.JFData)
    },
    toggle(index) {
      // this.$refs.checkboxes[index].toggle()
      // console.log(index,this.cjdwData)
      this.JFData[0]['CHDWMC'] = this.cjdwData[index].COMAPNY_NAME
      this.JFData[0]['CHDWID'] = this.cjdwData[index].QYID
    },
    getButtons(name, val, key) {
      if (val == '图集类型') {
        //跳转
        this.$router.push({
          path: '/BuildingServerv2',
          query: {
            id: '不能编辑',
            data: this.TJJFData[0].TJBH
          }
        })
      }
    },
    onConfirm(val) {
      this.Enum.show = false
      console.log(val)
      this.JFData[0]['SFXZCHDW'] = val.value
      if (val.value == 5) {
        this.isShow1 = true
      } else {
        this.isShow1 = false
      }
    },
    async getSelection() {
      let data = []
      const res = await GSA_Search('d87a95d9-72f3-44ad-a4d9-df335123a925', data)
      console.log(res)
      if (res.Data && res.Data.length > 0) {
        this.show2 = true
        this.cjdwData = res.Data
      }
    },
    async getTJInfo() {
      let datasTJ = [{ field: 'to_row_guid', value: this.rowData.ROW_GUID }]
      const resNoDataTJ = await GSA_Search('ba906ba1-8d90-42da-971c-3ad7995f92c0', datasTJ)
      if (resNoDataTJ.Data && resNoDataTJ.Data.length > 0) {
        this.TJJFData = resNoDataTJ.Data
      }
    },
    //回显测绘单位
    async getFaYangData() {
      debugger
      let data = [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }, { field: 'OPTYPE', value: this.optype }]
      const res = await GSA_Search('a79f625b-66e9-4d1b-9da6-5bd5566810ba', data)
      if (res.Data && res.Data.length > 0) {
        let data1 = res.Data[0]
        this.JFData[0].CHDWMC = data1.CHDWMC
        this.JFData[0].CHDWID = data1.CHDWID
        this.JFData[0].SFXZCHDW = data1.SFXZCHDW
        if (data1.SFXZCHDW == 5) {
          this.isShow1 = true
        } else {
          this.isShow1 = false
        }
      }

    },
    async getData() {
      let data = [{ field: 'house_spxxV2.TO_ROW_GUID', value: this.rowData.ROW_GUID }]
      const res = await GSA_Search('9e433235-671d-4b4e-a3c2-676d714494d2', data)
      console.log(res)
      if (res.Data && res.Data.length > 0) {
        // this.JFData = res.Data
      }
    },
    //获取1630078c-3fa8-45f9-b3f1-bfd4a3ab918e 三方审核视图
    async getThree() {
      let data = [{ field: 'TO_ROW_GUID', value: this.rowData.ROW_GUID }]
      const res = await GSA_Search('1630078c-3fa8-45f9-b3f1-bfd4a3ab918e', data)
      if(res.Data.length>0){
        this.JFData2=res.Data;
        this.$emit("getJFData",this.JFData2)
      }
      debugger
      // for (let i in res.Data[0]) {
      //   for (let j in this.JFData2[0]) {
      //     if (i.toLocaleUpperCase() == j.toLocaleUpperCase()) {
      //       this.JFData2[0][j.toLocaleUpperCase()] = res.Data[0][i.toLocaleUpperCase()]
      //     }
      //   }
      // }
    }
  },
  mounted() {
    // this.getData()
    this.getTJInfo()
    this.getThree()
    this.getFaYangData()
  },
  created() {
    console.log(this)
    if (this.rowData.NODE_GUID == '{BFF3BE52-75D4-4C53-B5E9-9144E35E7617}') {
      this.FJData1 = this.FJData2
      this.FJData1.unshift({
        title: '立模照片',
        FileName: [],
        isReadOnly: true,
        groupGuid: 'c171cc5f-1774-4cca-81de-e1aea9927bb4',
        fileList: []
      })
    } else if (this.rowData.NODE_GUID == '{646A4D45-00AC-4EA9-98AE-C5E704740BC1}') {
      this.FJData1.unshift({
        title: '放样照片',
        FileName: [],
        isReadOnly: true,
        groupGuid: '60bf5886-f9d1-445e-9ff7-27ec2affd84b',
        fileList: []
      })
    } else if (this.rowData.NODE_GUID == '{D9C76DDF-7A07-4F5F-A9F2-FD597C715481}') {
      //基槽验线
      this.FJData1 = this.FJData3
    } else {
      this.FJData1 = this.FJData4
    }
  },
  components: {
    inputSelect,
    upLoad
  }
}
</script>
<style lang="scss">
.tabForm {
  .van-field__label {
    color: black;
    font-weight: bold !important;
    font-size: 13px !important;
    width: 10em;
  }

  .van-field__control {
    text-align: right;
  }

  .van-radio--horizontal {
    margin-right: 30px;
  }

  .van-collapse-item__content {
    padding: 6px;
    color: black;
  }

  .titleBtn {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .subTitle {
    width: 100%;
    // height: 40px;
    // line-height: 40px;
    font-size: 14px;
    position: relative;
    display: flex;
    align-items: center;
    // border-bottom: 1px solid #9b9b9b;
    // padding-left: 10px;

    .line {
      width: 6px;
      height: 26px;
      background: #3f8ffc;
      display: inline-block;
      margin-right: 10px;
    }
  }
}
</style>
<style>.van-cell {
  color: black;
  font-weight: bold !important;
}

.van-collapse-item__content {
  color: black;
  padding: 0 6px !important;
}</style>
